<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>180-键盘事件属性.html</title>
</head>
<body>
	
</body>
<script>
	document.onkeydown = function(ev){
		console.log("event.keycode",event.keycode)//键盘编码
		console.log("event.ctrlkey",event.ctrlkey)//ctrl键
		console.log("event.shiftkey",event.shiftkey)//shift键
		console.log("event.altkey",event.altkey)//alt键
	}
</script>
</html>